package com.bolt.report.engine.model;

import java.util.List;

public class ColumnHeader extends BaseBand {

    private boolean loopPrintHead;

    public ColumnHeader(List<Column> columns, boolean loopPrintHead) {
        this.loopPrintHead = loopPrintHead;
        setColumns(columns);
    }

    public boolean isLoopPrintHead(int pageNumber) {
        if (loopPrintHead) {
            return loopPrintHead;
        } else {
            return pageNumber == 0;
        }
    }
}